<?php

/**
 * Modelotaxi form base class.
 *
 * @method Modelotaxi getObject() Returns the current form's model object
 *
 * @package    KrazyTaxi
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseModelotaxiForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'MODELOTAXI'   => new sfWidgetFormInputHidden(),
      'IDMODELOTAXI' => new sfWidgetFormInputHidden(),
      'IDMARCATAXI'  => new sfWidgetFormPropelChoice(array('model' => 'Marcataxi', 'add_empty' => true)),
    ));

    $this->setValidators(array(
      'MODELOTAXI'   => new sfValidatorChoice(array('choices' => array($this->getObject()->getModelotaxi()), 'empty_value' => $this->getObject()->getModelotaxi(), 'required' => false)),
      'IDMODELOTAXI' => new sfValidatorChoice(array('choices' => array($this->getObject()->getIdmodelotaxi()), 'empty_value' => $this->getObject()->getIdmodelotaxi(), 'required' => false)),
      'IDMARCATAXI'  => new sfValidatorPropelChoice(array('model' => 'Marcataxi', 'column' => 'IDMARCATAXI', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('modelotaxi[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Modelotaxi';
  }


}
